package hyj.qx.websocket.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("content")
@ApiModel("存储消息实体")
public class Content {
    @ApiModelProperty("消息id")
    private Integer id;
    @ApiModelProperty("消息内容")
    private String content;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("来自谁")
    private Integer fromId;
    @ApiModelProperty("给谁")
    private Integer toId;

}
